/*
** my_power_rec.c for lib in /home/boulah_m//jour_11
** 
** Made by moustafa boulahia
** Login   <boulah_m@epitech.net>
** 
** Started on  Mon Oct 24 09:39:04 2011 moustafa boulahia
** Last update Mon Oct 24 09:41:41 2011 moustafa boulahia
*/
int	my_power_rec(int nb, int pow)
{
  if (pow < 0)
    {
      return (0);
    }
  else if (pow == 0)
    {
      return (1);
    }
  else if (pow == 1)
    {
      return (nb);
    }
  else
    {
      return (nb * my_power_rec(nb, pow -1));
    }
}
